Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task/store last measure #1670

Merged
merged 28 commits into from
Jan 13, 2025
Merged

Task/store last measure #1670

merged 28 commits into from
Jan 13, 2025

Conversation

AlvaroVega
Copy link
Member

@AlvaroVega AlvaroVega commented Nov 19, 2024

#1669

@AlvaroVega AlvaroVega marked this pull request as ready for review November 28, 2024 14:28
CHANGES_NEXT_RELEASE Outdated Show resolved Hide resolved
@fgalan
Copy link
Member

fgalan commented Jan 8, 2025

Similar comment to the one at #1677 (comment)

I'd suggest to make the last measure option to use the same approach that with another on/off features (eg. timestamp), that can be set at IOTA instance / group / device level, with the same precedence rules.

@fgalan
Copy link
Member

fgalan commented Jan 8, 2025

Should this PR include tests cases regarding the new feature?

doc/admin.md Outdated
Comment on lines 424 to 425
If this flag is activated, last measure arrived to Device IoTAgent without be processed will be stored in Device under
lastMeasure field with in timestamp. This flag is disabled by default.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe an example on how the measure is stored would be helpful. By the "will be stored in Device under
lastMeasure field with in timestamp" it is not fully clear (e.g. is a sub-JSON object used for that)?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in 1f6f3f4

CHANGES_NEXT_RELEASE Outdated Show resolved Hide resolved
@AlvaroVega
Copy link
Member Author

Similar comment to the one at #1677 (comment)

I'd suggest to make the last measure option to use the same approach that with another on/off features (eg. timestamp), that can be set at IOTA instance / group / device level, with the same precedence rules.

Done in df26df1

@AlvaroVega
Copy link
Member Author

Should this PR include tests cases regarding the new feature?

Tests addresed in this other PR telefonicaid/iotagent-json#848

doc/admin.md Outdated Show resolved Hide resolved
doc/admin.md Outdated Show resolved Hide resolved
AlvaroVega and others added 2 commits January 13, 2025 15:54
Co-authored-by: Fermín Galán Márquez <[email protected]>
Co-authored-by: Fermín Galán Márquez <[email protected]>
#### `storeLastMeasure`

If this flag is activated, last measure arrived to Device IoTAgent without be processed will be stored in Device under
`lastMeasure` field (composed of sub-fields `timestamp` and `measure` for the measure itself, in multi-measure format). This flag is overwritten by `storeLastMeasure` flag in group or device. This flag
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This flag is overwritten by storeLastMeasure flag in group or device

Should api.md be modified to include the new field in the corresponding sections describing API payloads?

doc/api.md Outdated Show resolved Hide resolved
doc/api.md Outdated Show resolved Hide resolved
CHANGES_NEXT_RELEASE Outdated Show resolved Hide resolved
AlvaroVega and others added 3 commits January 13, 2025 16:45
Co-authored-by: Fermín Galán Márquez <[email protected]>
Co-authored-by: Fermín Galán Márquez <[email protected]>
Co-authored-by: Fermín Galán Márquez <[email protected]>
Copy link
Member

@fgalan fgalan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fgalan fgalan merged commit 3775aa9 into master Jan 13, 2025
7 checks passed
@fgalan fgalan deleted the task/store_last_measure branch January 13, 2025 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants